<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生端 - 在线考试系统</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
    <div class="container mt-5">
        <h1 class="text-center">欢迎，学生 {{ username }}！</h1>
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="card p-4">
                    <form action="/student_dashboard/{{ username }}" method="POST">
                        <div class="mb-3">
                            <label for="class_name" class="form-label">输入要加入的班级名称:</label>
                            <input type="text" id="class_name" name="class_name" class="form-control" required>
                        </div>
                        <button type="submit" class="btn btn-success w-100">加入班级</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
